<template>
	<div>
		<el-card class="box-card">
			<div class="text item">
				<div class="hoverdivClass" v-for="(value, key) in propertyList" :key="key">
					<el-form ref="form" v-if="titleList[key]" label-position="left">
						<el-form-item :label="titleList[key]">
							<el-input v-model="propertyList[key]" type="textarea"></el-input>
						</el-form-item>
					</el-form>
				</div>
			</div>
		</el-card>
	</div>
</template>
<script>
export default {
	props: {
		getData: {
			type: Function,
			default: Function
		}
	},
	data() {
		return {
			titleList: {
				applyAgreementId: '指数使用协议',
				applyReportId: '申请报告',
				capitalManageContractId: '资产管理合同',
				commitmentLetterId: '承诺函',
				delayRaiseReplyId: '延期募集批复',
				enlistExplainId: '招募说明书(申请文件)',
				enlistExplainId2: '招募说明书(募集文件)',
				enlistExplainRemark: '招募说明书摘要',
				filingLetterId: '协会备案函',
				foundReplyId: '成立批复',
				fundContractFillId: '《基金合同填报指引》',
				fundContractId: '基金合同(申请文件)',
				fundContractId2: '基金合同(募集文件)',
				fundContractRemark: '基金合同摘要',
				fundPlanId: '《基金产品方案》',
				interResultId: '内部决议',
				lawProposalId: '《法律意见书》',
				liquInfoationReportId: '清算报告',
				modifyLogonReplyId: '变更注册批复',
				otherMaterialsId: '成立通知书',
				otherMaterialsId10: '证监会要求的其他文件.zip',
				otherMaterialsId2: '到账通知书',
				otherMaterialsId3: '验资报告（集合计划）',
				otherMaterialsId4: '如期货备忘录',
				otherMaterialsId5: '代销协议',
				otherMaterialsId6: '投顾协议',
				otherMaterialsId7: '金融产品完成备案的证明材料',
				otherMaterialsId8: '委托人列表',
				otherMaterialsId9: '期货备忘录',
				planExplainId: '计划说明书',
				productDataResume: '产品资料概要',
				raiseLogonReplyId: '募集注册批复',
				riskProclaimId: '风险揭示书',
				specialLetterId: '特殊承诺函',
				subscribeShareLetterId: '认购发起份额的承诺函',
				tradeNoActionLetterId: '交易所无异议函',
				trustAgreementId: '托管协议(申请文件)',
				trustAgreementId2: '托管协议(募集文件)'
			},
			propertyList: {
				applyAgreementId: '',
				applyReportId: '',
				capitalManageContractId: '',
				commitmentLetterId: '',
				delayRaiseReplyId: '',
				enlistExplainId: '',
				enlistExplainId2: '',
				enlistExplainRemark: '',
				filingLetterId: '	',
				foundReplyId: '',
				fundContractFillId: '',
				fundContractId: '',
				fundContractId2: '	',
				fundContractRemark: '',
				fundPlanId: '',
				interResultId: '',
				lawProposalId: '',
				liquInfoationReportId: '',
				modifyLogonReplyId: '',
				otherMaterialsId: '',
				otherMaterialsId10: '',
				otherMaterialsId2: '',
				otherMaterialsId3: '',
				otherMaterialsId4: '',
				otherMaterialsId5: '',
				otherMaterialsId6: '',
				otherMaterialsId7: '',
				otherMaterialsId8: '',
				otherMaterialsId9: '',
				planExplainId: '',
				productDataResume: '',
				raiseLogonReplyId: '',
				riskProclaimId: '',
				specialLetterId: '',
				subscribeShareLetterId: '',
				tradeNoActionLetterId: '',
				trustAgreementId: '',
				trustAgreementId2: ''
			}
		}
	},
	methods: {
		saveSetings() {
			return this.propertyList
		},
		edit(data) {
			const obj = JSON.parse(JSON.stringify(data))
			this.propertyList = { ...this.propertyList, ...obj }
			for (const i in this.propertyList) {
				if (!this.propertyList[i]) {
					this.propertyList[i] = ''
				}
			}
		}
	}
}
</script>
<style lang="scss" scoped >
</style>
